package com.platform.service.impl;

import com.platform.dao.ApiEmceeAdPositionDao;
import com.platform.entity.ApiEmceeAdPositionEntity;
import com.platform.service.ApiEmceeAdPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author ocean
 * @email 1141736487@qq.com
 * @date 2019-03-26 11:26:42
 */
@Service
public class ApiEmceeAdPositionServiceImpl implements ApiEmceeAdPositionService {
    @Autowired
    private ApiEmceeAdPositionDao adPositionDao;

    @Override
    public ApiEmceeAdPositionEntity queryObject(Integer id) {
        return adPositionDao.queryObject(id);
    }

    @Override
    public ApiEmceeAdPositionEntity queryByCodeAndUser(String code, Long createUser){
        return adPositionDao.queryByCodeAndUser(code, createUser);
    }
    @Override
    public List<ApiEmceeAdPositionEntity> queryList(Map<String, Object> map) {
        return adPositionDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return adPositionDao.queryTotal(map);
    }

    @Override
    public int save(ApiEmceeAdPositionEntity adPosition) {
        return adPositionDao.save(adPosition);
    }

    @Override
    public int update(ApiEmceeAdPositionEntity adPosition) {
        return adPositionDao.update(adPosition);
    }

    @Override
    public int delete(Integer id) {
        return adPositionDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return adPositionDao.deleteBatch(ids);
    }
}
